﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="CourseManager.View.Login" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="javascript" type="text/javascript">
	function getCheckCode() {
		var getimagecode = document.getElementById("getcode");
		getimagecode.src = "VerifyCode.aspx";
	} 
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
	<title>上海大学课程管理系统 Beta</title>
	<link href="Resources/CssStyles/main.css" type="text/css" rel="Stylesheet" />
</head>
<body style="background-color: #E6E6E6;">
	<form id="form1" runat="server">
	<ext:ResourceManager ID="ResourceManager1" runat="server" />
	<center>
		<div style="height: 70px;" >&nbsp;</div>
		<div class="loginImg" style="width: 700px; height: 400px">
			<ext:Panel runat="server" ID="pnlLogin" Header="false" Border="false" Width="700"
				Height="400" BaseCls="x-plan" Layout="Absolute">
				<Content>
<%--					<ext:Label runat="server" ID="lblTitle" Html="<a style='font-size: 25px; font-weight: bold; color: #333333'>上海大学课程管理系统</a>"--%>
<%--						X="400" Y="100" />--%>
					<ext:Panel runat="server" ID="layPanel" Header="false" Border="false" Width="230"
						BaseCls="x-plan" Height="120" Layout="Absolute" X="410" Y="185">
						<Content>
							<ext:TextField runat="server" ID="txtName" Width="180" FieldLabel="用户名" MaxLength="20" Text="08122333"
								SelectOnFocus="true" AllowBlank="false" BlankText="用户名不能为空!" MsgTarget="Side"
								LabelWidth="45" X="0" Y="0" ValidateOnBlur="false" />
							<ext:TextField runat="server" ID="txtPass" Width="180" FieldLabel="密&nbsp;&nbsp;&nbsp;码" Text="0812333"
								SelectOnFocus="true" MsgTarget="Side" MaxLength="20" InputType="Password" LabelWidth="45"
								X="0" Y="30" AllowBlank="false" BlankText="密码不能为空!" ValidateOnBlur="false" />
							<ext:TextField runat="server" ID="txtCode" MaxLength="4" AllowBlank="false" ValidateOnBlur="false"
								SelectOnFocus="true" Width="110" FieldLabel="验证码" LabelWidth="45" BlankText="验证码不能为空!"
								Y="60" />
							<ext:Image runat="server" ID="eimgValid" ImageUrl="CheckCodeImage.aspx" Width="60"
								Height="22" X="120" Y="60">
								<ToolTips>
									<ext:ToolTip ID="Tooltip1" runat="server" Html="看不清，换一张" />
								</ToolTips>
								<DirectEvents>
									<Click OnEvent="EimgValidChange">
										<EventMask ShowMask="true" Msg="正在更换验证码..." />
									</Click>
								</DirectEvents>
							</ext:Image>
							<ext:Label runat="server" ID="elbValid" Text="点击图片更换验证码" StyleSpec="color:red;" X="50"
								Y="85" />
							<ext:Button runat="server" ID="btnLogin" Text="登录" Icon="Accept" CausesValidation="true"
								Type="Submit" X="115" Y="100" Width="70" Height="30">
								<Listeners>
									<Click Handler="if (!#{txtName}.validate() | !#{txtPass}.validate() | !#{txtCode}.validate()) { return false;}" />
								</Listeners>
								<DirectEvents>
									<Click OnEvent="BtnLoginClick">
										<EventMask ShowMask="true" Msg="正在验证，请稍候..." />
									</Click>
								</DirectEvents>
							</ext:Button>
						</Content>
					</ext:Panel>
<%--					<ext:LinkButton runat="server" ID="elbHelp" Text="操作说明" X="520" Y="370" />--%>
<%--					<ext:LinkButton runat="server" ID="elbDown" Text="驱动下载" X="600" Y="370" />--%>
				</Content>
			</ext:Panel>
		</div>
	</center>
	</form>
</body>
</html>
